Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |local_filesystem

fs/local::|local_filesystem


Usage

|local_filesystem(path)

Parameters

↳ path: Option<string>

Return

Option<FileSystem>


Create a local filesystem handle optionally rooted at path.

When path is Some, all file operations performed through the returned FileSystem are interpreted relative to that directory. When path is None, the process working directory is used as the root.

Returns None only when the underlying engine cannot be initialised, which in practice never happens for a local filesystem.